<!--
 * @Descripttion: 
 * @version: 
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2022-09-24 18:18:43
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
-->
<template>
  <div class="home-container">
    <div class="floating-elements">
      <div class="circle"></div>
      <div class="square"></div>
      <div class="triangle"></div>
    </div>
    <div class="welcome-section">
      <h1 class="title">OwO帖子系统</h1>
      <p class="subtitle">欢迎光临</p>
    </div>
  </div>
</template>

<script setup>
// 保持简单的脚本部分
</script>

<style scoped lang="scss">
.home-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  position: relative;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;

  .circle,
  .square,
  .triangle {
    position: absolute;
    opacity: 0.1;
    animation: float 15s infinite linear;
  }

  .circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #2196f3;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
  }

  .square {
    width: 80px;
    height: 80px;
    background: #00bcd4;
    top: 60%;
    right: 20%;
    animation-delay: -5s;
    transform: rotate(45deg);
  }

  .triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(0, 188, 212, 0.1);
    top: 30%;
    right: 30%;
    animation-delay: -10s;
  }
}

.welcome-section {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  &:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(31, 38, 135, 0.25);
  }
}

.title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #2196f3, #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 2rem;
  color: #666;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 0.5s;
  letter-spacing: 1px;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 30px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(33, 150, 243, 0.3),
      0 0 10px rgba(33, 150, 243, 0.3);
  }
  to {
    text-shadow: 0 0 15px rgba(33, 150, 243, 0.5),
      0 0 25px rgba(33, 150, 243, 0.5);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
</style>
